package client.game;


import general.helperclasses.logger.Logger;

import org.lwjgl.LWJGLUtil;


public class TestLwjgl extends Game{
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		//Logger.addEntry("Debugging active: "+ LWJGLUtil.DEBUG);
		
		TestLwjgl app = new TestLwjgl("Milstrat Tech Preview",false,1024,768,0,60,true);

		try
		{
			app.start();
			
			while(app.isAlive())
			{
				//Thread[] tarray = new Thread[TestLwjgl.activeCount()];
				//Logger.addEntry("The following Movable Sprites are alive:");
				//TestLwjgl.enumerate(tarray);

				Thread.sleep(1000);
			}
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}		
		Logger.saveToFile();
	}
	
	public TestLwjgl(String title, boolean fullscreen, int horizontal_resolution, int vertical_resolution, int AA_Samples, int target_Framerate, boolean v_sync) {
		super(title, fullscreen, horizontal_resolution, vertical_resolution, AA_Samples, target_Framerate, v_sync);
	}	

	@Override
	public void update(long gametime) {

		//Keyboard handling
		this.handleInput();
		
	}	
}
